#if _DEBUG

#include <cppunit/config/SourcePrefix.h>
#include "ParserTest.h"

void ParserTest::setUp()
{
} 

void ParserTest::tearDown()
{
}

CPPUNIT_TEST_SUITE_REGISTRATION( ParserTest );

void ParserTest::testParser1()
{
	STRING filePath="test/TestFile1.txt";
	SPA spa;

	CPPUNIT_ASSERT(spa.LoadFile(filePath));
	CPPUNIT_ASSERT(spa.ParseFile());
	CPPUNIT_ASSERT(spa.CompareGeneratedCode());
}
void ParserTest::testParser2()
{
	STRING filePath="test/TestFile2.txt";
	SPA spa;

	CPPUNIT_ASSERT(spa.LoadFile(filePath));
	CPPUNIT_ASSERT(spa.ParseFile());
	CPPUNIT_ASSERT(spa.CompareGeneratedCode());
}
void ParserTest::testParser3()
{
	STRING filePath="test/TestFile3.txt";
	SPA spa;

	CPPUNIT_ASSERT(spa.LoadFile(filePath));
	CPPUNIT_ASSERT(spa.ParseFile());
	CPPUNIT_ASSERT(spa.CompareGeneratedCode());
}
void ParserTest::testParser4()
{
	STRING filePath="test/TestFile4.txt";
	SPA spa;

	CPPUNIT_ASSERT(spa.LoadFile(filePath));
	CPPUNIT_ASSERT(spa.ParseFile());
	CPPUNIT_ASSERT(spa.CompareGeneratedCode());
}

#endif